// CheckWin8.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <cstdio>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{

	OSVERSIONINFOEX osVer = {sizeof(OSVERSIONINFO)};
	::GetVersionEx(reinterpret_cast<LPOSVERSIONINFO>(&osVer));
	cout << osVer.dwMajorVersion <<endl;
	cout << osVer.dwMinorVersion << endl;

	int n = 0;
	cin >> n;

	return 0;
}

